//
//  WFNavigationViewController.m
//  WFTravel
//
//  Created by mc on 2017/11/8.
//  Copyright © 2017年 admin. All rights reserved.
//

#import "LLNavigationViewController.h"

@interface LLNavigationViewController ()

@end

@implementation LLNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    if (self.viewControllers.count > 0) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:animated];
    
    // 修改tabBra的frame, 修改 iPhone X tabbar 的上移
//    CGRect frame = self.tabBarController.tabBar.frame;
//    frame.origin.y = [UIScreen mainScreen].bounds.size.height - frame.size.height;
//    self.tabBarController.tabBar.frame = frame;
}

///设置状态栏字体蓝色，主要是针对present出的控制器字体变白的问题
- (UIViewController *)childViewControllerForStatusBarStyle
{
    return self.viewControllers.firstObject;
}

@end
